package com.ktjy.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping("/dev")
public class HelloController {
    Logger logger= LoggerFactory.getLogger(HelloController.class);

//    @RequestMapping("/hello")
//    @RequestMapping(value = {"/hello","/hello2"})
    @RequestMapping(value = "/hello",method = RequestMethod.GET)
    public String hello(){
        logger.info("hello方法调用了");
        return "hello";
    }
}
